package cn.onlineclass.entity;
import java.util.Date;


public class OBook {

  private long id;
  private String name;
  private long unitid;
  private String descrption;
  private boolean inuse;
  private Date createtime;
  private Date modifytime;
  private long viewers;
  private String imgsrc;


  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public long getUnitid() {
    return unitid;
  }

  public void setUnitid(long unitid) {
    this.unitid = unitid;
  }


  public String getDescrption() {
    return descrption;
  }

  public void setDescrption(String descrption) {
    this.descrption = descrption;
  }


  public boolean getInuse() {
    return inuse;
  }

  public void setInuse(boolean inuse) {
    this.inuse = inuse;
  }


  public Date getCreatetime() {
    return createtime;
  }

  public void setCreatetime(Date createtime) {
    this.createtime = createtime;
  }


  public Date getModifytime() {
    return modifytime;
  }

  public void setModifytime(Date modifytime) {
    this.modifytime = modifytime;
  }


  public long getViewers() {
    return viewers;
  }

  public void setViewers(long viewers) {
    this.viewers = viewers;
  }


  public String getImgsrc() {
    return imgsrc;
  }

  public void setImgsrc(String imgsrc) {
    this.imgsrc = imgsrc;
  }

  @Override
  public String toString() {
    return "OBook{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", unitid=" + unitid +
            ", descrption='" + descrption + '\'' +
            ", inuse='" + inuse + '\'' +
            ", createtime=" + createtime +
            ", modifytime=" + modifytime +
            ", viewers=" + viewers +
            ", imgsrc='" + imgsrc + '\'' +
            '}';
  }

  public OBook(String name, long unitid, String descrption, boolean inuse, Date createtime, Date modifytime, long viewers, String imgsrc) {
    this.name = name;
    this.unitid = unitid;
    this.descrption = descrption;
    this.inuse = inuse;
    this.createtime = createtime;
    this.modifytime = modifytime;
    this.viewers = viewers;
    this.imgsrc = imgsrc;
  }

  public OBook(long id, String name, long unitid, String descrption, boolean inuse, Date createtime, Date modifytime, long viewers, String imgsrc) {
    this.id = id;
    this.name = name;
    this.unitid = unitid;
    this.descrption = descrption;
    this.inuse = inuse;
    this.createtime = createtime;
    this.modifytime = modifytime;
    this.viewers = viewers;
    this.imgsrc = imgsrc;
  }

  public OBook() {
  }
}
